//
//  ByUIHelpVC.m
//  laserdevice_ios
//
//  Created by pro on 16/11/24.
//  Copyright © 2016年 com.itboye. All rights reserved.
//

#import "ByUIHelpVC.h"


@interface ByUIHelpVC ()

@end

@implementation ByUIHelpVC

- (void)viewDidLoad {
    [super viewDidLoad];

    self.title = STRING(@"bangzhuwendang");
    
    [self addLeftBackBarButtonItem];
    
    UIWebView *webView = [[UIWebView alloc] initWithFrame:self.view.bounds];
    webView.scalesPageToFit = YES;
    [self.view addSubview:webView];
    

    // 中文
    if ([ByLanguageController shareInstance].mode == ByLanguageModeChinaese) {
        
        NSBundle *mainBundle = [NSBundle mainBundle];
        NSString *filePath = [mainBundle pathForResource:@"use" ofType:@"pdf"];
        NSURL *fileURL = [NSURL fileURLWithPath:filePath];
        NSURLRequest *request = [NSURLRequest requestWithURL:fileURL];
        [webView loadRequest:request];
    } else {
        NSBundle *mainBundle = [NSBundle mainBundle];
        NSString *filePath = [mainBundle pathForResource:@"use_en" ofType:@"pdf"];
        NSURL *fileURL = [NSURL fileURLWithPath:filePath];
        NSURLRequest *request = [NSURLRequest requestWithURL:fileURL];
        [webView loadRequest:request];
    }
    

    
    
}




@end
